<link rel="stylesheet" href="<?php echo base_url('assets/js/tooltip/tooltip.css');?>" type="text/css" media="screen" />
<script type="text/javascript" src="<?php echo base_url('assets/js/tooltip/tooltip.js');?>"></script>

<div class="container">
    <div class="width680 left">
        <?php echo $this->load->view('_partials/filterbox')?>
         <div class="NewsList">
            <div class="divHeader clear"></div>
            <div class="divContent clear">
                <?php foreach($posts as $key=>$item) {  ?>
                <div class="listItem">
                    <div class="thumb110 left"><img src='<?php echo base_url($item['image']) ?>' style="width: 90px;" /></div>
                    <div class="itemcontent">
                        <h3 class="name title"><a href="<?php echo get_post_detail_url($item['id']); ?>"><?php echo ucfirst($item['name']); ?></a></h3>
                        <div class="userProductList">
                            <?php echo getByShop($item['user_id']) ?> - <span class="datetime"><?php echo getLabelProvinder($item['provinder_id'],true); ?> - <?php echo getRemainingTime($item['modifyTime']); ?></span>
                        </div>

                    </div>
                    <div class="box-price">
                        <div class="price">
                            <div class="price priceColor" align="right">
                                <strong title="Giá bán"><?php echo number_format($item['price'],0,'.','.') ?>  <?php echo img('assets/default/images/ico-vnd.gif') ?></strong>
                            </div>
                            <?php if(!empty($item['promotion'])){ ?>
                            <div class="oldPrice" title="Giá thị trường">
                                <?php echo number_format($item['promotion'],0,'.','.') ?><?php echo img('assets/default/images/ico-vnd-price-out.gif') ?> </div>
                            <?php } ?>
                        </div>
                        <div class="box-city" title="Xem / Phản hồi" style="font-family: Tahoma;">
                            <?php //echo $item['hit'] ?>
                        </div>
                    </div>
                </div>
                <?php } ?>
            </div>
            <div class="divFooter clear"></div>

            <?php echo $this->pagination->create_links();?>

<!--            <p class="total_row">Có tổng số <strong class="clred">--><?php //echo $total_rows; ?><!--</strong> tin rao vặt về --><?php //echo $tags ?><!--</p>-->

        </div>
    </div>

        <?php
        echo $this->load->view('_partials/sidebar')
        ?>

</div>
